//
//  MYShopBaseGoodSalesOrderCell.swift
//  MuYing
//
//  Created by tbb on 2020/2/24.
//  Copyright © 2020 TBB. All rights reserved.
//

import UIKit

class MYShopBaseGoodSalesOrderCell: YQTableViewBaseCell {
    @IBOutlet weak var goodsImageView: UIImageView!
    
//    @IBOutlet weak var remarkTextFiled: UITextField!
    @IBOutlet weak var titleLb: UILabel!
    @IBOutlet weak var specificationLb: UILabel!
    
    @IBOutlet weak var priceLb: UILabel!
    
    @IBOutlet weak var numLb: UILabel!
    
    @objc var cartModel:YQPCartModel? {
        didSet {
            goodsImageView.setImageWith(URL(string: self.cartModel?.skuImg ?? ""), placeholder: UIImage());
            titleLb.text = self.cartModel?.skuName;
            specificationLb.text = self.cartModel?.specification;
            numLb.text = self.cartModel?.itemNumber;
//            priceLb.text = String(format: "￥%@", self.cartModel?.price ?? "")//String(format: "￥%@", self.cartModel?.price ?? "");
            
//            self.remarkTextFiled.text = self.cartModel?.message;
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
//        self.remarkTextFiled.tintColor = appThemeColor;
        self.goodsImageView.layer.cornerRadius = 8.0;
//        self.remarkTextFiled.delegate = self;
    }
    
    
    

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}

//extension MYShopBaseGoodSalesOrderCell {
//    func textFieldDidEndEditing(_ textField: UITextField) {
//        self.cartModel?.message = textField.text ?? "";
//    }
//}
